package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sl.au.entity.Root;

/**
 * 事件评论信息
 * @author yangdi
 */

@Entity
@Table(name = "sl_wcsi_Comment")
public class Comment extends Root{

	@Column(nullable = true)
	private String content;//评论内容
	
	@Column(nullable = true)
	private int score = 0; //评分

	@ManyToOne
	@JoinColumn(name = "eventReport",nullable = true)
	private EventReport eventReport;//上报事件
	
	@ManyToOne
	@JoinColumn(name = "commentator",nullable = true)
	private User commentator;//评论人
	
	@ManyToOne
	@JoinColumn(name = "operator",nullable = true)
	private User operator;//操作者
	

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public EventReport getEventReport() {
		return eventReport;
	}

	public void setEventReport(EventReport eventReport) {
		this.eventReport = eventReport;
	}

	public User getCommentator() {
		return commentator;
	}

	public void setCommentator(User commentator) {
		this.commentator = commentator;
	}

	public User getOperator() {
		return operator;
	}

	public void setOperator(User operator) {
		this.operator = operator;
	}
}
